# Contributor: Zoey <zoey@z0ey.de>
# Contributor: Nulo <git@nulo.in>
# Maintainer: Zoey <zoey@z0ey.de>
pkgname=geckodriver
pkgver=0.33.0
pkgrel=2
pkgdesc="Proxy for using W3C WebDriver compatible clients to interact with Gecko-based browsers."
url="https://github.com/mozilla/geckodriver"
arch="all"
license="MPL-2.0"
makedepends="cargo cargo-auditable"
source="$pkgname-$pkgver.tar.gz::https://github.com/mozilla/geckodriver/archive/refs/tags/v$pkgver.tar.gz
		update-libc.patch
		"

build() {
	cargo auditable build --release --bin geckodriver
}

check() {
	cargo test --release
}

package() {
	install -Dm0755 target/release/$pkgname -t "$pkgdir"/usr/bin
}

sha512sums="
e1e88cd3f0a58e56705e1bf3d5f00e8775fc8d978c01362551473d45b4a189218297896a9b47dc66132b3cbacb19ff253d4dc9467733bd5a23fe99518b7195d4  geckodriver-0.33.0.tar.gz
0e989ca7dcc05e62f6138f6a995010511636f6b9f124ea1db02d34fae55d1194f16493799ed0dc084218204e51ef787c6d84110e1f8a51c7d4a6441d52772529  update-libc.patch
"
